package fr.umlv.j2ee.patterns.sessionfacade;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import fr.umlv.j2ee.patterns.transfertobject.Account;

@Stateless
public class FacadBean implements FacadBusiness {
	
	
	@EJB
	private AccountBusiness accBus;
	
	@EJB
	private CommandBusiness cmdBus;

	public void addAccount(Account a) {
		accBus.addAccount(a);
	}

	public Account getAccount(String id) {
		return accBus.getAccount(id);
	}

	public void listAccount() {
		accBus.listAccount();
	}

	public void addCommand() {
		cmdBus.addCommand();
	}

	public void listCommand() {
		cmdBus.listCommand();
	}
	

	
}
